import Vue from 'vue'
import App from './App'
import store from './store'
import $http from '@/js_sdk/requestConfig';
import $httpJSON from '@/js_sdk/requestJSON';

import router from './router'
import { RouterMount } from 'uni-simple-router'
import routerLink from './node_modules/uni-simple-router/component/router-link.vue'
Vue.component('router-link',routerLink)
Vue.prototype.$http = $http;
Vue.prototype.$httpJSON = $httpJSON;
Vue.prototype.$store = store;
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
		store
})
// app.$mount()
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,'#app');
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif